import matplotlib
import numpy as np


precip = matplotlib.colors.ListedColormap(np.array([[255,255,255],
[236,255,65],
[217,255,90],
[198,255,115],
[179,255,140],
[159,255,166],
[140,255,191],
[117,237,185],
[93,218,179],
[70,199,172],
[47,180,166],
[23,160,160],
[0,141,154],
[0,142,168],
[0,143,183],
[0,144,197],
[0,145,211],
[0,146,226],
[0,147,240],
[10,122,231],
[20,98,222],
[30,73,213],
[40,49,203],
[50,24,194],
[59,0,185],])/255.0)

import matplotlib
terra = matplotlib.colors.ListedColormap(np.array([[97,162,255],[63,126,97],[70,133,93],[76,140,90],[83,148,87],[90,155,83],[97,162,80],[104,169,77],[111,176,74],[118,183,70],[125,191,67],[132,198,64],[139,205,61],[146,212,57],[153,217,60],[160,220,64],[167,223,68],[175,227,72],[182,230,76],[189,234,80],[196,237,85],[203,240,89],[211,244,93],[218,247,97],[225,251,101],[232,254,105],[235,250,107],[233,240,107],[231,229,106],[229,218,106],[227,207,105],[226,196,105],[224,186,104],[222,175,104],[220,164,103],[218,153,103],[216,143,102],[215,132,102],[212,123,101],[208,122,99],[203,121,97],[199,120,94],[195,119,92],[190,118,90],[186,117,88],[181,116,86],[177,115,84],[172,114,82],[168,113,80],[164,112,78],[159,111,76],])/255.0)
terras = matplotlib.colors.ListedColormap(np.array([[98,154,189],[97,159,167],[96,164,144],[96,169,122],[95,174,100],[94,179,78],
[93,183,55],
[97,189,41],
[114,196,51],
[130,203,61],
[147,210,71],
[164,217,80],
[181,224,90],
[197,231,100],
[214,238,110],
[231,245,120],
[247,252,130],
[251,247,131],
[242,230,124],
[232,213,117],
[223,196,110],
[214,179,103],
[204,162,96],
[195,146,89],
[186,129,82],
[176,112,74],
[167,95,67],
[172,103,80],
[181,120,99],
[190,137,118],
[200,154,137],
[209,171,156],
[218,188,175],
[228,205,194],
[237,222,213],
[246,239,232],
[235,235,231],])/255.0)
ndvi_map = matplotlib.colors.ListedColormap(['#CE7E45', '#DF923D', '#F1B555', '#FCD163', '#99B718', '#74A901',
    '#66A000', '#529400', '#3E8601', '#207401', '#056201', '#004C00', '#023B01',
    '#012E01', '#011D01', '#011301'
  ])
